<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/ad/act-list">活动列表</a></li>
    <li class="active">新增活动</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate>
    <div class="form-group" ng-class="{'has-error':form.activitiesHost.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>活动举办方</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="活动举办方" name="activitiesHost" ng-model="act.activitiesHost" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesTitle.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>活动名称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="活动名称" name="activitiesTitle" ng-model="act.activitiesTitle" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesSideTitle.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>活动副标</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="活动副标" name="activitiesSideTitle" ng-model="act.activitiesSideTitle" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesStartTime.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>开始时间</label>
      <div class="col-sm-5">
        <input type="datetime-local" class="form-control" autocomplete="off" placeholder="开始时间" name="activitiesStartTime" ng-model="act.activitiesStartTime"  required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesEndTime.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>结束时间</label>
      <div class="col-sm-5">
        <input type="datetime-local" class="form-control" autocomplete="off" placeholder="结束时间" name="activitiesEndTime" ng-model="act.activitiesEndTime"  required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesRegistEndTime.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>报名截止时间</label>
      <div class="col-sm-5">
        <input type="datetime-local" class="form-control" autocomplete="off" placeholder="报名截止时间" name="activitiesRegistEndTime" ng-model="act.activitiesRegistEndTime"  required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesExpenseExplain.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>费用说明</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="费用说明" name="activitiesExpenseExplain" ng-model="act.activitiesExpenseExplain" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesTotalPerson.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>可报名人数</label>
      <div class="col-sm-5">
        <input type="number" class="form-control" placeholder="可报名人数" name="activitiesTotalPerson" ng-model="act.activitiesTotalPerson" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesImageUri.$invalid}">
      <label class="col-sm-2 control-label">活动图片<div class="text-muted ng-binding">750x360</div></label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="活动图片" name="activitiesImageUri" ng-model="act.activitiesImageUri">
        <div class="btn btn-primary add-pic-btn">上传图片</div>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.activitiesAddre.$invalid}">
      <label class="col-sm-2 control-label"><span class="required">*</span>活动地址</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="活动地址" name="activitiesAddre" ng-model="act.activitiesAddre" required="required">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">上下架</label>
      <div class="col-sm-5">
        <label class="radio-inline">
          <input type="radio" name="status" value="01" ng-model="act.activitiesStatus">上架
        </label>
        <label class="radio-inline">
          <input type="radio" name="status" value="02" ng-model="act.activitiesStatus">下架
        </label>
      </div>
    </div>
    
    <div class="form-group" ng-class="{'has-error':form.activitiesRecomment.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        具体内容
      </label>
      <div class="col-sm-7">
        <div class="ueditor" config="config" ready="ready" ng-model="act.activitiesRecomment" style="height:300px;" required></div>
      </div>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>
  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>
